package cn.edu.xmu.oomall.customer.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * @author Jiazhe Yuan
 * @date 2021-12-14 12:23:45
 */
public class ModifyPwdVo {
    private String captcha;

    @Pattern(regexp = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!%*?&#])[A-Za-z\\d@$!%*?&#]{8,}$",message = "密码格式不正确，请包含大小写字母数字及特殊符号")
    @NotBlank(message = "请输入密码")
    private String newPassword;
}
